import request from "@/utils/request";

// 查询列表
export function listRelationship(query) {
  return request({
    url: "/basic-api/company/comRelationship/com/list",
    method: "get",
    params: query,
  });
}

// 查询企业关系详细
export function getRelationship(id) {
  return request({
    url: "/basic-api/company/comRelationship/com/" + id,
    method: "get",
  });
}

// 新增企业关系
export function addRelationship(data) {
  return request({
    url: "/basic-api/company/comRelationship/com",
    method: "post",
    data: data,
  });
}

// 修改企业关系
export function updateRelationship(data) {
  return request({
    url: "/basic-api/company/comRelationship/com",
    method: "put",
    data: data,
  });
}

// 删除企业关系
export function delRelationship(id) {
  return request({
    url: "/basic-api/company/comRelationship/com/" + id,
    method: "delete",
  });
}
